package com.fifth.user.controller.api;

import com.fifth.common.pojo.entity.Comment;
import com.fifth.user.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/comment")
public class ApiCommentController {
    @Autowired
    private CommentService commentService;
    @GetMapping("addComment/{code}/{goodsid}/{userid}")
    public void addComment(@PathVariable String code,@PathVariable String goodsid,@PathVariable String userid){
        commentService.addComment(code,goodsid,userid);
    }
}
